fixed scheduler creation