temporarily restore init function for Agent.js - will be obsolete soon