added error return function (gotta add logger)
nevermind