added API stuff