use pickle instead of yaml