added route variable support
resourceFactory support