TODO: add support for dynamic unpickling settings