shuffle code to be in closer proximity of related functions
re-enable main queue direct mode