work on script + latex wrapper for script