fixed args and check config file