fixing usage of input $path and $type, preparing Assoc Model