added logging
fixed usings