attempt: fix for random crashing