script engine redesigned, some fixes in ecodes / lib30