change target to beforebuild for buildconfig