add clear after train to avoid crash
loadlibrary in static
remove unused menu layout