added import method so that loging can be controlled by the impoter
fixed import