bot code moved