set proper ID and error handling