print location type and context