Fix aml start function, Add exports flag