added shape attribute, closes #295
merge branch 'issue295' into devel