add error handling to player