clean up imports
config uses datetime, not string
add comment