migrate pragma config to lib