add credential module and routing seperately