done some refactoring on CrontabAdapter