changed pickling protocol, updated reload functions