get filename as argument (never thought it could be SO hard)