added timeout capability
implementing headers