fix for mac / ubuntu compatibility