refactor of node logic and factory for http get