fixes #5; serial and parallel add through type check