updated asas.R to work with new file structure