simple minimal preprocessing