now actually supports check mode
a few fixes
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>