segregated config and app code in library