extract controller code to use it as package export
use singleton method to fetch command instance