fleshing out WP files and functions