sets up trojan method