add context and base directory