add type and group detecting methods
version 1.2