added some error codes