updated to use xvfd, workingish