update all code from Double emcore