debug to console also