moved argv() from lib module to core