profile scoping and tests added'