make persp-load-state-from-file safer