added local :attributes option - #361