add mycd function plus unknown stuff