run accepts keyword args. adapt main accordingly