Fix compile error and consolidate config
Start of join endpoint