size configurable from main.js