getting closer to having logiccontroller working