working out issues with example app