init bookms and import basic codes