add seconds support to the client and use that by default
reformat
refactor