change function names to avoid collision with dispatch lib