add base indentaion, fix bug in parent spy handling