applib check app phase