added stdio to errors just in case