added constants reading to pcal.