added possibility to configure custom captions