add date format
clean up build error
add test case for null handler