fixing some automation