tryin another approach to getting the main context