made console.as more independent