wrapper for parsing scripts