reworks the catalyst embed file to funciton as the endpoint