refactor to support multiple backends
Added missing = sign
Merge pull request #1 from niklabh/master

Added missing = sign
more work towards supporting multiple backends