reorg functions.php; will move shell.php functionality later
add mod files