Compounding a foldscope