adjusted start script to work with mac's