weird pickle bug fixed
re-add slogdet, fix merge conflict