added static compile mode