add version check and moved stub implementation as source