adding a filter for aliases, and a couple extra functions