add mapping file code, started to brack into class components