fixed sapi/embed