simplify code; remove unused static_prefix_path