setup script for modwrite