create and configure on jvm startup