fixed some problems with http resuest