fixed: doesn't work on Mac