error in return code when failed (returned -(-1) == same value as 'success')