authentication and result massaging added