working on setup.php plugin functions