updated bin/compile API