implements #4, use env to configure app