make sure to delete :pretty option so it doesn't persist when not needed