adding lib/controller structure