fixing the functions
updated fix (remove)
fixed issues with data-array and path-settings
fixed and tested functions