Working with agents – problems and pitfalls