add auto-detection of session reference into DYN (lazy loader)