converted lib/config and lib/sidebar to spring