added support for processing and fitting data