added -r for publish