fixed; check for running X will be added in future