improved errors and added calc flag to validate subcmd