Final Version with mac application

used during installation. code is faster