added prelim autocap in app js