almost there, server side done'