first real working version, added controller plugin