added more precise scheduling functionality to encoder block