check if pause function exists first to prevent errors