fix to accept String rather than Object