a very basic controller