add controller scan function