finish adapting for new AsieLib