better .queue formatting, dict writing bug