ok fixed up asynch problems and debugged a ton. Think it's working