time helper
check if we should send
fix compilation problems