[register] is working with full path