added suprocess call and made minor app changes