setup script for amis