endpoint is now calculated via js