move dict to lib