instead of setting deva with bakery.py, extract it to js #337