working out some bugs with dialplan generation