modify agent script for ganji