add and fix methods extendClass & $extend & $watch