basic PTable functionality now working