add `checkup` command, refactor