fixed problem running on remote servers