improved service/http running script