changed default data location to $path/data
and removed restriction