update loader to take into account the emissive parameter (also fixed eol  issues)