moved require in lib