more work on the server-init script (WIP, but working