activate/deactivate ESM like I'm supposed to
cleanup and start writing the scheduling bits