move config inside lib