add abstract methods to Sp.php