fix export error and remove commented function in router file