remove path argument in register