added guard, but still having trouble getting liverelaod to work.