added function to list training directories