publish not working