add periodic task checking script