adjustments to fix errors in mac