onemax example now works with hack