fixed main on pe24
more main fixes?