better log in flow