support for rds (and refactoring
Merge pull request #8 from kenjiskywalker/support_rds

support for rds