small fixes, adding globals for cpu scheduler