updated join script to use the new params helpers
fixed the pointer type for a function prototype