build module hooks for auto attachment includes