refactor and add some logic
update autoloading
add unit test to test priorityLogger