clear output directory at the beginning