some minor cosmetic enhancements & capture2 for executing command