add snippet input data handler to snippets.class inputInit method
bug fix to snippets.class