the core of the basic app