added switch delegate methods
changed version to 2.1.1