fix order in loader and build config