allow mode to be set in config - addresses #3