server has to be called within a connection