re-fixed dynamic scheduler implementation