re-arrange build scripts, fix bug with postdrop