readded eps-export function