merged scripts 466 and 467 (oh god I'm mucking this up too god dammit why)