seperating HTTP with CLI functionality