wip implementation of controller