ignore symbols containing '#'

also fix a deprecation warning