some fixes
make actions work
updated max.php & others