initial script for automatic setup