Various fixes to aliasing, tasks --extract command