Loader API to load apis.

Made all programs use this api