adding framework for clogin implementation