import and fix motif dictionary