woops :) re-added the scheduler code