making progress.  need to get the basic controlflow working now