update console
Fixed PAM
Added tests