cleanup & qr stuff