cphook added (prevent 1st time app freez)