works in remote environment