bug-fixing, more logs, admin-panel fixes, flag adding bug fixes