cleanup: function ordering
bugfix: various semantic issues
feature: core monitoring and load-based scheduling