build script fixed for multiple callbacks