updated source API, removed prime dependency