load and store membership_type, fix statistics
pep8