scheduler update & global var clean