write highlevel library functions for creating a session config