better placement of functions
removed snapshot commands/hooks to own file