removed println
added resource handler