fixes suggested by Rob and James

Signed-off-by: Danny <dannyholt@me.com>