lsb1_embed and some static functions