moved into greeter
added constructor