take SHARED and INCLUDES into account