rewrite of suffixes to handle append and remove
replace dir_source and dir_sink by directory
changed api for dir from #call to #put