fixes required to run as non-root in ubuntu