improve ly setup script