moved all custom functions into plugin

Signed-off-by: ZackB <zack@irongatecreative.com>