fixed scripts; note: everything is pointers, adjust for this when driving with data