fix scheduler front-to-back
add api doc