initialize input from hash/fragment