added more AS functionality