started adapting controller to work with guit