add optimizations
add -rts to test and run them in parallel