still trying to get test max script to work