debugging code added to AHLS