fixed hooks autocomplete, added some snippets