setup grunt debug/debug-run/release + fixed connect function