move checkbox_to_bool out of junk
move SELF_USER_AGENT
move ErrorHandler registration
clean up mark mode and more