prevent crashing when endpoint not found