add statistics controller
add missing functionality