adding capfile and cap stuff to sample_app