putting error logs to see the crash point