convert to core classes