fixes + performance revision + added particle prototypes