use API finish

sparete loading and compiling