moved http dependancies to device