add logging file
cmds/add fixed add output
refactored cast errors to use a util