publishing to server works