added sudo write functionality with wclear