got main working again which touched just about everything