dirty logging and quick hacks