implement chained variables calls + improve test coverage