use object directly instead of require

fix #5