rebased on new meta_basedir/meta_path system