added app_name, user,group to config
switched to session gem from POpen4