fixed some nereus code + misc
fixed some nereus code + misc