fixing the launcher etc file and removing dead code