divide static and public in config