updated for Nette 2.1