added socket connections for apps
deletions