add sudo ability - turned off by default to original behavior if sudo parameter was not specified