build correctly without @Persistent@