more framework layout...need to figure out gui threading