[task] added methods getExtensions and getFields and set

getAllExtensions and getAllFields to Deprecated