fix logout url posting
base model def
tweak struct