added print action, improved target system