first dev version of context initialization