added root path for tasks and improved launching mechanism