add option argument onCreateSource