initial try
added checks for classes if not exist