fixing calling classes from within classes not resolving types