prepare script for startup