bug fixes, working to get example1 up and running