implemented finish_sent param from config files