complete new init script for relay