datadir was failing with an error .... datadir cannot be an array