started with structure in base.js