change directory search order