fix separate build and run