cleaned up console logging codes