Control of nano and microchemical systems