updated for Nette 2.2