gen_presync: a saner way to check input