[MRG] fix views and groups