super janky but its needed for safety