lots of error codes fixing