locale add and cleanup