apply mock cleanup and cofig file