adding config functionality