almost all function is in alias.sql now (func with arg too)