angshu | fixing order bug, also modified code to allow access to app extn if priv is null or not specified