this is working well, called from the server