add better driectory support to most