removed sudo calls to allow using on systems with no sudo