amadeusz fixed the write dbao