api controller and library initializer