token authentication handler
package name change for factories