solve substition in startup scripts