working mathlink interface
reorganizing subprocess