correct order of operations parsing - fixes #5