added root checking per #279