add array support for extensions, fix dependencies across files with different endings