better command error handling; elementVisible