modified fact to run command only once