fix meta and other bugs