used map to simplify bootstrap task