reworked the int conversion, and started dynamic scheduling