integrate cancan and fix filter core