added some runtime functions