getXY working fully on backend