remove mode attr since it is not used yet, fixes issue #7