refactored scripts and fixed person loading