cleanup rtld and add debugln