fix router so it also works with separate stk dir