fixing compile issues
adding status codes