fixed some issues related to applications return code