improve safety of Jpickle