fix enum cases
fix enums and preview