reintroduced autoloader to init class to avoid segmentation fault