updates for extensive access check before each operation. Extensive logging added