added attributes option (Fixes #4)