support for carbon rom (i9103) and make code nicer