consolidating to one function
consolidate to one function
ignored .pyc