more bug fixes for sample_id and a directory transfer issue