compatibility fix with my build script