refactor shopify_engine session handling