made sure that core runs in loop and added rest for fetching checks