added fw_ prefix to functions