shit this pastes.php needs a refactoring...