split out the server and authenticator
fix missing import
stop if request method is OPTIONS
update for launch