changed libCtrl to library
full functionality