core loop running