take in account dots inside aliases as well