init prototypes from index.js