update aliases, add extract function