refactor configuration information to allow better reuse of functions