changed implementation to greet via http instead of cli