update script engine and examples
better wp upload error handeling.
remove redundant script code from simple mode
misc