move debugs to console (more readable)