fixed booleans and error codes

Signed-off-by: Jason Kuster <unexpectedapocalypse@gmail.com>