bug fixes
sync code improved (rate limiting)
fix controller test