some cheap validation hacks