added passing of custom settings and data