full setup for rb - in progress - will test it later