Added api_script and lib