fix
add stem file logic