binary build system (almost finished)