changing standalone to embedded