add userconfig support. fixed #3