misc bug fixes

Signed-off-by: dvorkinista <villain@noironetworks.com>