unuseful code deleted, mac util added