main controller

Signed-off-by: mart-potter <mart@potter.ee>