snap framework init