added host script, implemented logic and stub methods