cleaned up publish