1. make cross domain authentication working

2. convert like output to rederable format