troubles with automatic chaining