improve module route selection