removed primitive exeptions for the moment, simplified code. Errors persist