added get definitions functionality