Fixed promises
Added connect server to serve ranges