brackets ported, some hot fixes, new ecodes