working end-to-end.  fixed issues of not starting correctly