API of instruments and widgets