scheduler updated to not add modules without items to the generated schedule