added manual mode