fix up sample app