boilerplate for adding snap