changed URL scheme to allow two AM modes